package o;

import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import androidx.annotation.NonNull;

public abstract class drd {
    public static void ˏ(@NonNull final String str, String str2) {
        int parseInt;
        int i = 0;
        try {
            parseInt = Integer.parseInt(str2);
        } catch (NumberFormatException e) {
            Logger.ˋ("AppStatusProcessor", "version code error " + e.toString());
            parseInt = i;
        }
        if (!dug.ˎ(str, parseInt) && !((cdg) cdb.ॱ(cdg.class)).ˎ(str, parseInt) && ((cdg) cdb.ॱ(cdg.class)).ॱॱ(str)) {
            Logger.ˎ("AppStatusProcessor", "card has a newer version:" + str2);
            dsi.ˏ(new AsyncTask() {
                protected Object doInBackground(Object[] objArr) {
                    int i = 1;
                    Context ˋ = ContentManager.getInstant().getContext();
                    if (dss.ॱ().ˎ(ˋ, str, 0, 1) == null) {
                        i = 0;
                    }
                    if (i != 0) {
                        Intent intent = new Intent();
                        intent.setAction(dvq.ˊ());
                        intent.setPackage(ˋ.getPackageName());
                        ˋ.sendBroadcast(intent);
                    }
                    return null;
                }
            });
        }
    }
}
